/*
 * UserTypeHolder.java
 * business
 *
 * Created by ChenTao on 2017/1/11.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.data.response.QueryUserInitInformationResponse;
import com.yidiandao.business.ui.widget.listview.ViewHolder;

/** 完善信息-用户注册类型 */
public class UserTypeHolder extends ViewHolder {

    private TextView tvTitle;

    @Override
    protected void initView(View rootView) {
        tvTitle = (TextView) rootView.findViewById(R.id.tv_title);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_user_type;
    }

    public void refreshUI(QueryUserInitInformationResponse.UserType userType) {
        tvTitle.setText(userType.getTypeName());
        tvTitle.setSelected(userType.isSelected());
    }
}
